/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2007，所有权利保留。
 * 
 * 文件名：	RB_v20r03.java
 * 模块说明：	
 * 修改历史：
 * Jun 6, 2007 - zhangyanbo - 创建。
 */
package com.hd123.rumba.upgrade.v20.r04;

import org.apache.log4j.Logger;

import com.hd123.rumba.cartridge.CartRumba;
import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.upgrade.DBCommand;
import com.hd123.rumba.upgrade.Upgrade;
import com.hd123.rumba.util.Version;

/**
 * 2.0.3.0->2.0.4.0
 * 
 * @author zhangyanbo
 * 
 */
public class RB_v20r03 extends Upgrade {

  public RB_v20r03() throws Exception {
    super();
    baseVersion = new Version("2.0.3.0");
    targetVersion = new Version("2.0.4.0");
    cartUuid = this.getCart(CartRumba.class).getUuid();
    logger = Logger.getLogger(this.getClass());
  }

  @Override
  public void executeDdl() throws BusinessException {
    DBCommand cmd = new DBCommand();
    execFile(cmd, "upgrade.sql");
  }

  @Override
  public void executeData() throws BusinessException {
    // do nothing
  }
}
